package com.itheima.properties;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

/*
把程序里的配置项写到配置文件中
 */
public class Demo04 {


    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();

        prop.setProperty("maxTime","60");
        prop.setProperty("minTime","30");

        prop.store(new FileOutputStream("day13\\time.properties"),"I donot know");

    }


}
